package com.demo.crm.springboot3security.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.demo.crm.springboot3security.entity.FormFieldValue;

@Mapper
public interface FormFieldValueMapper extends BaseMapper<FormFieldValue> {
    List<FormFieldValue> findByFormIdAndRecordId(Long formId, Long recordId);

    List<FormFieldValue> findByFormIdAndFieldIdAndRecordIdIn(Long formId, Long fieldId, List<Long> recordIds);

    List<Long> findRecordIdsByTextSearch(Long formId, Long fieldId, String searchText);

    void deleteByFormIdAndRecordId(Long formId, Long recordId);
}